package com.example.mtblog.dto;

import com.example.mtblog.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResUser {

    private UserDTO user;
    private String token;

    public ResUser(User user , String token){
        this.user = new UserDTO(user);
        this.token = token;
    }
}
